package com.agino.springboot.learn.autowirelearn;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.server.RouterFunction;

import static org.springframework.web.servlet.function.RequestPredicates.GET;
import static org.springframework.web.servlet.function.RouterFunctions.route;
import static org.springframework.web.servlet.function.ServerResponse.ok;

import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

/**
 * @author qinl
 * @date 2022/4/11 14:32
 **/
@Configuration
public class WebConfiguration {
//
//    @Bean
//    public RouterFunction<ServerResponse> helloWorld() {
//        return route(GET("/hello"),
//                request -> ok().body(Mono.just("Hello World"), String.class)
//        );
//    }
}
